package api.finance;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import conf.Url;
import util.HttpClientUtils;
import util.ResponseData;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class LoggDataApi {
    private static final String logger_data= Url.Base_Url+"consumer/receivableRecord/add";
        public static ResponseData logg_data(String collectionNumber, JSONArray receivableRecordLists) throws IOException, URISyntaxException {
        Map<String,Object> data=new HashMap<>();
        data.put("collectionNumber",collectionNumber);
        data.put("receivableRecordLists",receivableRecordLists);
        return HttpClientUtils.post_json(logger_data,data);
    }
}
